<template>
  <el-card class="box-card">
    <div slot="header" class="clearfix">
      <span>{{studentName}}</span>
      <el-button style="float: right; padding: 3px 0" type="text" @click="$emit('delete',studentId)">删除</el-button>
    </div>
    <div  class="text item">
      学号 :  {{studentId}}
    </div>

  </el-card>
</template>

<script>
export default {
  name: "StudentFormCard",
  props:{
    studentName:String,
    studentId:String,

  }
}
</script>

<style scoped>
.text {
  font-size: 14px;
}

.item {
  margin-bottom: 18px;
}

.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
.clearfix:after {
  clear: both
}

.box-card {
  width: 300px;
  margin: 20px;
}
</style>